package com.budayi.vo;

import com.budayi.common.group.TestOne;
import com.budayi.common.group.TestTwo;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.beans.factory.annotation.Autowired;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.math.BigDecimal;

/**
 * @author LIBOFEI
 * @ClassName TestVo
 * @description
 * @date 2021/11/4 11:26
 * @Version 1.0
 **/
@Data
@EqualsAndHashCode(callSuper = false)
public class TestVo implements Serializable {

    @NotNull(message = "id不能为空",groups = {TestOne.class, TestTwo.class})
    private Long userId;

    private int status;

    private BigDecimal price;

    private String name;

}
